Skip to content

Conversation

@yungsters
Copy link
Contributor

Summary:
The ReactNativePrivateInterface module needs to continue using module.exports in order to lazily import dependencies.

For now, we just suppress the lint/no-commonjs-exports lint rule.

Changelog:
[Internal]

Differential Revision: D74949839

yungsters added 3 commits May 17, 2025 22:19
Summary:

Migrates files to use ESM to mitigate the existing lint warning.

I am suppressing `RelativeImageStub` to preserve compatibility with the dynamic asset exports generated by Metro (i.e. not ESM with `default` exports).

Changelog:
[Internal]

Reviewed By: SamChou19815

Differential Revision: D74943031
Summary:

Migrates files to use ESM to mitigate the existing lint warning.

Changelog:
[Internal]

Differential Revision: D74949792
Summary:
The `ReactNativePrivateInterface` module needs to continue using `module.exports` in order to lazily import dependencies.

For now, we just suppress the `lint/no-commonjs-exports` lint rule.

Changelog:
[Internal]

Differential Revision: D74949839
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels May 18, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74949839

yungsters added a commit to yungsters/react-native that referenced this pull request May 18, 2025
)

Summary:

The `ReactNativePrivateInterface` module needs to continue using `module.exports` in order to lazily import dependencies.

For now, we just suppress the `lint/no-commonjs-exports` lint rule.

Changelog:
[Internal]

Differential Revision: D74949839
yungsters added a commit to yungsters/react-native that referenced this pull request May 18, 2025
)

Summary:

The `ReactNativePrivateInterface` module needs to continue using `module.exports` in order to lazily import dependencies.

For now, we just suppress the `lint/no-commonjs-exports` lint rule.

Changelog:
[Internal]

Differential Revision: D74949839
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 18, 2025
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4434707.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants